package com.cbh.feign.controller.general;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.product.Product;

public interface ProductControllerBase1 {

	/**
	 * 保存产品信息
	 * 
	 * @param product
	 * @return
	 */
	@RequestMapping(value = "/sign/v3/products", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> save(Product ob);

	/**
	 * 获取全部产品信息
	 * 
	 * @return
	 */
	@RequestMapping(value = "/sign/v3/products", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<Product>> getAll();

	/**
	 * 获取产品信息
	 * 
	 * @param proId
	 * @return
	 */
	@RequestMapping(value = "/sign/v3/products/{id}", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<Product> getOne(String id);
}
